
<div class="brands">
	<?php 
			$tv="select * from slide_brands order by rand()";
			$tv_1=mysql_query($tv);
			while($tv_2=mysql_fetch_array($tv_1))
			{
				$link_file="catalog/view/theme/default/image/slide/brands/".$tv_2['name'];
				$link_lien_ket=$tv_2['link'];
				
				echo "<a href='$link_lien_ket' target='_blank'>";
				echo "<img src='$link_file' width='190'>";
				echo "</a>";				
			}
		?>
</div>
<div class="brands">
	<?php 
			$tv="select * from slide_brands order by rand()";
			$tv_1=mysql_query($tv);
			while($tv_2=mysql_fetch_array($tv_1))
			{
				$link_file="catalog/view/theme/default/image/slide/brands/".$tv_2['name'];
				$link_lien_ket=$tv_2['link'];
				
				echo "<a href='$link_lien_ket' target='_blank'>";
				echo "<img src='$link_file' width='190'>";
				echo "</a>";				
			}
		?>
</div>
<div class="brands">
	<?php 
			$tv="select * from slide_brands order by rand()";
			$tv_1=mysql_query($tv);
			while($tv_2=mysql_fetch_array($tv_1))
			{
				$link_file="catalog/view/theme/default/image/slide/brands/".$tv_2['name'];
				$link_lien_ket=$tv_2['link'];
				
				echo "<a href='$link_lien_ket' target='_blank'>";
				echo "<img src='$link_file' width='190'>";
				echo "</a>";				
			}
		?>
</div>

<style type="text/css">
.brands{
	position:relative; 
	width:190px; 
	height:160px;
	margin-top:3px;
	margin-left:3px;
	margin-bottom:2px;
}
.brands img {
	width:190px; 
	height:160px;
}
</style>

<script type="text/javascript" src="catalog/view/javascript/fckeditor/jquery.cycle.all.2.73.js"></script>
<!--  initialize the slideshow when the DOM is ready -->
<script type="text/javascript">
	$(document).ready(function() {
	    $('.brands').cycle({
			fx: 'fade',
			timeout:7000
		});
	});
</script>